package cn.iocoder.yudao.module.aiposter.remote.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class AiClientAiPosterResp {

    @JsonProperty("app_id")
    private String appId;

    @JsonProperty("status")
    private String status;

    @JsonProperty("data")
    @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
    private List<Item> data;

    @Data
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Item{
        @JsonProperty("base64")
        private String base64;

        @JsonProperty("url")
        private String url;

        @JsonProperty("seed")
        private String seed;

        @JsonProperty("finish_reason")
        private String finishReason;
    }
}
